export default {
  name_uid: [
    { required: true, message: "用户名称不能为空", trigger: "change" }
  ],
  mode: [{ required: true, message: "采购方式不能为空", trigger: "change" }],
  supplier_id: [
    { required: true, message: "供应人员不能为空", trigger: "change" }
  ],
  direct_supplier: [
    { required: true, message: "直供人员不能为空", trigger: "change" }
  ],
  buyer_id: [
    { required: true, message: "供应人员不能为空", trigger: "change" }
  ],

  send_time: [{ required: true, message: "配送日期不能为空", trigger: "blur" }],
  order_num: [
    { required: true, message: "数量不能为空", trigger: "blur" },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和两位小数",
      trigger: "blur"
    }
  ],
  order_price: [
    { required: true, message: "单价不能为空", trigger: "blur" },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和小数",
      trigger: "blur"
    }
  ],
  purchase_price: [
    { required: true, message: "采购单价不能为空", trigger: "blur" },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和两位小数",
      trigger: "blur"
    }
  ],

  purchase_money: [
    { required: true, message: "采购小计不能为空", trigger: "blur" },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和两位小数",
      trigger: "blur"
    }
  ]
};
